package com.svse.designPattern.structure.decorator.concretedecorator;

import com.svse.designPattern.structure.decorator.component.Component;
import com.svse.designPattern.structure.decorator.decorator.Decorator;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/2 8:29
 */
public class ConcreteDecorator extends Decorator {
    public ConcreteDecorator(Component component) {
        super(component);
    }
    public void operation(){
       super.operation();
       addSpecialMethod();
    }

    private void addSpecialMethod() {
        System.out.println("执行特殊的方法：：addSpecialMethod");
    }
}
